{extend name="public/world"}
{block name="title"}添加科目{/block}
{block name="style"}
<style type="text/css">
    .layui-form-label {width:110px;}
</style>
{/block}
{block name="container"}
<div class="layui-form" lay-filter="layuiadmin-form-useradmin" id="layuiadmin-form-useradmin">
    <div class="layui-card" style="padding: 20px 0 0 0;height:250px;margin-bottom: 10px;">
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">上级科目</label>
                <div class="layui-form-mid">{$sub.code}-{$sub.name}-{$sub.pname}</div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">科目编码</label>
                <div class="layui-input-inline">
                    <input type="text" name="code" value="{$code}" autocomplete="off" class="layui-input">
                </div>
                <div class="layui-form-mid layui-word-aux">* 不需要进行改动</div>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label label-required">科目名称</label>
                <div class="layui-input-inline" style="width: 250px;">
                    <input type="text" name="name" value="" lay-verify="required" placeholder="请输入科目名称" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label label-required">结转标示</label>
            <div class="layui-input-block">
                <input type="radio" name="sys" value="0" title="不结转" checked>
                <input type="radio" name="sys" value="1" title="结转">
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-inline">
                <label class="layui-form-label">备注</label>
                <div class="layui-input-inline" style="width: 250px;">
                    <input type="text" name="remark" value="" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
        <div class="layui-form-item layui-hide">
            <input type="button" lay-submit lay-filter="LAY-front-submit" id="LAY-front-submit" value="确认">
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
    //JavaScript代码区域
    layui.use(['form'], function() {
        var $ = layui.$
            , form = layui.form;
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.iframeAuto(index);
    });
</script>
{/block}